<template>
  <div>
    <p>BBBB</p>
    <p>姓名：{{ name }}</p>
    <p>年龄：{{ age }}</p>
  </div>
</template>

<script>
export default {
  name: "BComp",
  // 声明接受provide
  inject: ["name", "age"],
};
</script>

<style></style>
